import 'package:flutter/material.dart';

class RangkingPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _RangkingPage();
  }
}

class _RangkingPage extends State<RangkingPage>
    with AutomaticKeepAliveClientMixin {
  @override
  Widget build(BuildContext context) {
    super.build(context);
    return Scaffold(
      appBar: AppBar(),
      body: Container(
        child: Text("排行榜"),
      ),
    );
  }

  // 切换页面不会被销毁
  @override
  bool get wantKeepAlive => true;
}
